﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using System.Data.Entity;

namespace Game_MVC3.Models
{
    public class Admin
    {
        [Key]
        public string Username { get; set; }

        [Required(ErrorMessage = "Admin's Password cannot be empty.")]
        public string Password { get; set; }

        [Required(ErrorMessage = "Admin's Name cannot be empty.")]
        [Display(Description = "Admin's Display Name")]
        public string Name { get; set; }

        [Column("creation_date")]
        [Editable(false)]
        public DateTime CreationDate { get; set; }

        [Column("last_login")]
        [Editable(false)]
        public DateTime LastLogin { get; set; }
    }
}